import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import 'antd/dist/antd.less'
import './utils/request'
import { HashRouter as Router } from 'react-router-dom'
import { Provider } from 'react-redux'
import {store, persistor} from './store'
import {PersistGate} from 'redux-persist/lib/integration/react';
// 国际化
import { ConfigProvider } from 'antd';
import zhCN from 'antd/es/locale/zh_CN';

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <Provider store={store}>
    <PersistGate persistor={persistor}>
      <Router history={Router}>
        <ConfigProvider locale={zhCN}>
          <App />
        </ConfigProvider>
      </Router>
    </PersistGate>
  </Provider>,
);

